package com.kimstore.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

@Entity
@Table(name = "customer")
public class Customer {

    public static final String RESELLER = "Reseller";
    public static final String MEET_UPS = "Meet Ups";
    public static final String SHIPPING = "Shipping";
    public static final String CONSIGNMENT = "Consignment";
    public static final String MARKETING = "Marketing";
    
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private int id;
    
    private String name;
    
    private String phoneNumber;
    
    @Column(columnDefinition="TEXT")
    private String address;

    public Customer() {
    }

    public Customer(String name) {
        this.name = name;
    }
    
    public Customer(String name, String number, String address) {
        this.name = name;
        this.phoneNumber = number;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
